function doLogin() {
	new Ajax.Request('/dslers/login', 
		{method:'post', 
      	 parameters:'dsler_email='+$(('dsler_email')).value+'&dsler_password='+$(('dsler_password')).value, 
 		 onComplete:showResponse});
}

function doAfterLogin(id, name, email) {
    document.getElementById('user_email').innerHTML = email;
}

function showResponse(originalRequest) {
	var response = originalRequest.responseText;
	eval(response);
}

